﻿@model _2_1_2015_WSite.Models.CommunicationViewModel

@{
    ViewBag.Title = "Create";
}

<h2>Create Communication</h2>




    <div class="row">
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

            <div class="row box box-info" style="padding: 15px">
                <div class="col-xs-4">
 
                        <div class="box-success">

                            <div class="form-group">
                                @Html.ValidationSummary(true, "", new { @class = "text-danger" })


                                <div class="form-group">
                                    @Html.LabelFor(model => model.MessageTitle)<br/>
                                    @Html.TextBoxFor(model => model.MessageTitle, new { @class = "form-control" } )
                                    @Html.ValidationMessageFor(model => model.MessageTitle, "", new { @class = "text-danger" })

                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.MessageLead)<br />
                                    @Html.TextBoxFor(model => model.MessageLead, new { @class = "form-control" } )
                                    @Html.ValidationMessageFor(model => model.MessageLead, "", new { @class = "text-danger" })

                                </div>
                                <div class="form-group">
                                    @Html.LabelFor(model => model.CommunicationTypeId)
                                    @Html.DropDownListFor(model => model.CommunicationTypeId, new SelectList(Model.CommunicationTypes, "CommunicationTypeId", "CommunicationTypeDesc"), "-Select Communication Type-", new { @class = "form-control" })
                                    @Html.ValidationMessageFor(model => model.CommunicationTypeId, "", new { @class = "text-danger" })
                                </div>
                                <div class="form-group">
                                    <input type="submit" value="Create" class="btn btn-default" />
                                </div>
                            </div>
                        </div>
                    </div>



                    <div class="col-xs-8">
                        <div class="form-group">
                            @Html.LabelFor(model => model.Message)
                            @Html.EditorFor(model => model.Message, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.Message, "", new { @class = "text-danger" })
                        </div>

 
                    </div>

                

            </div>





 

}

        <div>
            @Html.ActionLink("Back to List", "Index")
        </div>
</div>
        @section Scripts {
            @Scripts.Render("~/bundles/jqueryval")
        }

